package kuonjisai.oop;

public class J31_AccountService implements J31_AccountInterface {

	@Override
	public float getMonthlyInterestRate(J31_AccountVO avo) {
		
		return avo.getInterestRate() / 12;
	}

	@Override
	public void withDraw(J31_AccountVO avo, int gold) {
		int tmp = avo.getBalance();
		tmp -= gold;
		avo.setBalance(tmp);

	}

	@Override
	public void deposit(J31_AccountVO avo, int gold) {
		int tmp = avo.getBalance();
		tmp += gold;
		avo.setBalance(tmp);

	}



	
	
	
} // J31_AccountService
